/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Review.test3;

import java.io.Serializable;

/**
 *
 * @author THIEN
 */
public class Student implements Serializable{

    private String rollNumber;
    private String name;
    private String address;

    public Student() {
    }

    public Student(String rollNumber, String name, String address) {
        this.rollNumber = rollNumber;
        this.name = name;
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public String getName() {
        return name;
    }

    public String getRollNumber() {
        return rollNumber;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRollNumber(String rollNumber) {
        this.rollNumber = rollNumber;
    }
    @Override
    public String toString(){
        return "Roll: "+rollNumber+"\tName: "+name+"\tAddress: "+address;
    }

}
